package com.qcby.model.dto;

import com.qcby.util.StringUtils;

import lombok.*;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ToRegistDto {
    private String username;

    private String password;

    private String displayName;

    private String phone;

    public boolean isResisterParamValid() {
        return !StringUtils.isEmpty(this.getUsername())
            && !StringUtils.isEmpty(this.getPassword())
            && !StringUtils.isEmpty(this.getDisplayName())
            && !StringUtils.isEmpty(this.getPhone());
    }
}
